package view.renderer;

import java.awt.Graphics;
import java.util.Iterator;
import java.util.LinkedList;

import data.entity.Entity;

public class EntityRenderer extends Renderer{

	private LinkedList<Entity> entities;
	


	public EntityRenderer(LinkedList<Entity> entities){
		this.entities = entities;
	}
	
	@Override
	public void render(Graphics g) {
		Iterator<Entity> it = entities.iterator();
		while(it.hasNext()){
			Entity e = it.next();
			e.render(g);
		}
	}

}
